﻿@model LyyCMS.Areas.Dash.Models.LoginModel
@{
    Layout = "";
}

@{
    ViewData["Title"] = "Index";
}
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors">
    <title>
        后台登录
    </title>
    <link href="/lib/bootstrap/dist/css/bootstrap.css" rel="stylesheet">
    <link href="~/css/signin.css" rel="stylesheet">
</head>
<body class="text-center">
    <form class="form-signin" role="form" asp-controller="User" asp-action="Login" method="post">

        <img class="mb-4" src="~/images/Dash/bootstrap-solid.svg" alt="" width="72" height="72">
        <h1 class="h3 mb-3 font-weight-normal">Please sign in</h1>
        <label asp-for="UserName" class="control-label" style="display:none;"></label>
        <input asp-for="UserName" class="form-control" placeholder="User Name" value="@Model.UserName" />
        <span asp-validation-for="UserName" class="text-danger"></span>


        <label asp-for="PassWord" class="control-label" style="display:none;"></label>
        <input asp-for="PassWord" class="form-control" type="password" placeholder="Password" value="@Model.PassWord" />
        <span asp-validation-for="PassWord" class="text-danger"></span>

        <div class="checkbox mb-3">
            <label>
                <input class="form-check-input" asp-for="RemberMe" /> @Html.DisplayNameFor(model => model.RemberMe)
            </label>
        </div>
        @ViewData["ErrorMessage"]
        <button class="btn btn-lg btn-primary btn-block" type="submit">Sign in</button>
        <p class="mt-5 mb-3 text-muted">&copy; 2017-2019</p>
    </form>

    @section Scripts {
        @{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
    }

</body>
</html>


@*<div class="row" style="display:none;">
        <div class="col-md-4">
            <form role="form" asp-action="Login" asp-controller="User" data-parsley-validate="" novalidate="">
                <div asp-validation-summary="ModelOnly" class="text-danger"></div>
                <div class="form-group">
                    <label asp-for="UserName1" class="control-label"></label>
                    <input asp-for="UserName1" class="form-control" />
                    <span asp-validation-for="UserName1" class="text-danger"></span>
                </div>
                <div class="form-group">
                    <label asp-for="PassWord1" class="control-label"></label>
                    <input asp-for="PassWord1" class="form-control" />
                    <span asp-validation-for="PassWord1" class="text-danger"></span>
                </div>
                <div class="form-group form-check">
                    <label class="form-check-label">
                        <input class="form-check-input" asp-for="RemberMe" /> @Html.DisplayNameFor(model => model.RemberMe)
                    </label>
                </div>
                <div class="form-group">
                    <input type="submit" value="Save" class="btn btn-primary" />
                </div>
                <span>
                    @ValidationSummary.All

                </span>
            </form>
        </div>
    </div>*@

